package com.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wty
 * @since 2021-05-15
 */
@Data
@Accessors(chain = true)
public class Tickers extends Model<Tickers> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private String result;
    /**
     * 最新成交价
     */
    private BigDecimal last;
    /**
     * 卖方最低价
     */
    private BigDecimal lowestAsk;
    /**
     * 买方最高价
     */
    private BigDecimal highestBid;
    /**
     * 涨跌百分比
     */
    private String percentChange;
    /**
     * 交易量
     */
    private String baseVolume;
    /**
     * 兑换货币交易量
     */
    private String quoteVolume;
    /**
     * 24小时最高价
     */
    private BigDecimal high24hr;
    /**
     * 24小时最低价
     */
    private BigDecimal low24hr;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
